package client;

public enum MapleJob {

    新手(0),
    战士(100),
    剑客(110),
    勇士(111),
    英雄(112),
    准骑士(120),
    骑士(121),
    圣骑士(122),
    枪战士(130),
    龙骑士(131),
    黑骑士(132),
    魔法师(200),
    火毒法师(210),
    火毒巫师(211),
    火毒魔导师(212),
    冰雷法师(220),
    冰雷巫师(221),
    冰雷魔导师(222),
    牧师(230),
    祭司(231),
    主教(232),
    弓箭手(300),
    猎人(310),
    射手(311),
    神射手(312),
    弩弓手(320),
    游侠(321),
    箭神(322),
    飞侠(400),
    刺客(410),
    无影人(411),
    隐士(412),
    侠客(420),
    独行侠(421),
    侠盗(422),
    BLADE_RECRUIT(430),
    BLADE_ACOLYTE(431),
    BLADE_SPECIALIST(432),
    BLADE_LORD(433),
    BLADE_MASTER(434),
    PIRATE_CS(501),
    JETT1(508),
    海盜(500),
    拳手(510),
    斗士(511),
    冲锋队长(512),
    火枪手(520),
    大副(521),
    船长(522),
    CANNON_BLASTER(531),
    CANNON_MASTER(532),
    JETT2(570),
    JETT3(571),
    JETT4(572),
    MANAGER(800),
    GM(900),
    SUPERGM(910),
    NOBLESSE(1000),
    DAWNWARRIOR1(1100),
    DAWNWARRIOR2(1110),
    DAWNWARRIOR3(1111),
    DAWNWARRIOR4(1112),
    BLAZEWIZARD1(1200),
    BLAZEWIZARD2(1210),
    BLAZEWIZARD3(1211),
    BLAZEWIZARD4(1212),
    WINDARCHER1(1300),
    WINDARCHER2(1310),
    WINDARCHER3(1311),
    WINDARCHER4(1312),
    NIGHTWALKER1(1400),
    NIGHTWALKER2(1410),
    NIGHTWALKER3(1411),
    NIGHTWALKER4(1412),
    THUNDERBREAKER1(1500),
    THUNDERBREAKER2(1510),
    THUNDERBREAKER3(1511),
    THUNDERBREAKER4(1512),
    LEGEND(2000),
    EVAN_NOOB(2001),
    ARAN1(2100),
    ARAN2(2110),
    ARAN3(2111),
    ARAN4(2112),
    EVAN1(2200),
    EVAN2(2210),
    EVAN3(2211),
    EVAN4(2212),
    EVAN5(2213),
    EVAN6(2214),
    EVAN7(2215),
    EVAN8(2216),
    EVAN9(2217),
    EVAN10(2218),
    MERCEDES(2002),
    MERCEDES1(2300),
    MERCEDES2(2310),
    MERCEDES3(2311),
    MERCEDES4(2312),
    PHANTOM(2003),
    PHANTOM1(2400),
    PHANTOM2(2410),
    PHANTOM3(2411),
    PHANTOM4(2412),
    LUMINOUS(2004),
    LUMINOUS1(2700),
    LUMINOUS2(2710),
    LUMINOUS3(2711),
    LUMINOUS4(2712),
    CITIZEN(3000),
    DEMON_SLAYER(3001),
    XENON(3002),
    DEMON_SLAYER1(3100),
    DEMON_SLAYER2(3110),
    DEMON_SLAYER3(3111),
    DEMON_SLAYER4(3112),
    DEMON_AVENGER1(3101),
    DEMON_AVENGER2(3120),
    DEMON_AVENGER3(3121),
    DEMON_AVENGER4(3122),
    BATTLE_MAGE_1(3200),
    BATTLE_MAGE_2(3210),
    BATTLE_MAGE_3(3211),
    BATTLE_MAGE_4(3212),
    WILD_HUNTER_1(3300),
    WILD_HUNTER_2(3310),
    WILD_HUNTER_3(3311),
    WILD_HUNTER_4(3312),
    MECHANIC_1(3500),
    MECHANIC_2(3510),
    MECHANIC_3(3511),
    MECHANIC_4(3512),
    XENON1(3600),
    XENON2(3610),
    XENON3(3611),
    XENON4(3612),
    HAYATO(4001),
    KANNA(4002),
    HAYATO1(4100),
    HAYATO2(4110),
    HAYATO3(4111),
    HAYATO4(4112),
    KANNA1(4200),
    KANNA2(4210),
    KANNA3(4211),
    KANNA4(4212),
    NAMELESS_WARDEN(5000),
    MIHILE1(5100),
    MIHILE2(5110),
    MIHILE3(5111),
    MIHILE4(5112),
    KAISER(6000),
    ANGELIC_BUSTER(6001),
    KAISER1(6100),
    KAISER2(6110),
    KAISER3(6111),
    KAISER4(6112),
    ANGELIC_BUSTER1(6500),
    ANGELIC_BUSTER2(6510),
    ANGELIC_BUSTER3(6511),
    ANGELIC_BUSTER4(6512),
    ADDITIONAL_SKILLS(9000),
    ZERO(10000),
    ZERO1(10100),
    ZERO2(10110),
    ZERO3(10111),
    ZERO4(10112),
    BEASTTAMER(11212);
    private final int jobid;

    private MapleJob(int id) {
        this.jobid = id;
    }

    public int getId() {
        return this.jobid;
    }

    public static String getName(MapleJob mjob) {
        return mjob.name();
    }

    public static MapleJob getById(int id) {
        for (MapleJob l : values()) {
            if (l.getId() == id) {
                return l;
            }
        }
        return null;
    }

    public static boolean isExist(int id) {
        for (MapleJob job : values()) {
            if (job.getId() == id) {
                return true;
            }
        }
        return false;
    }
}
